home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / gettext.arc / GETTEXT.MAN < prev    next >
Text File  |  1988-07-05  |  2KB  |  60 lines

  1.        GETTEXT                ST-UNIX User's Manual                GETTEXT
  2.  
  3.  
  4.  
  5.        COMMAND
  6.             gettext - locally print, display or capture text files from a
  7.                       UNIX host.
  8.  
  9.        FORMAT
  10.             gettext [%][+]<filename>
  11.  
  12.        DESCRIPTION
  13.             pGettextq can either print, display or capture a text file 
  14.             that exists on a UNIX host.  It is important that certain 
  15.             information be placed in the .cshrc and .login files of the host
  16.             as follows:
  17.  
  18.             The .login file -
  19.  
  20.                    alias incat 'setenv FOOBAR x ; /bin/csh ; unsetenv FOOBAR'
  21.                    alias outcat 'stty echo ; exit'
  22.  
  23.             The .cshrc file -
  24.  
  25.                    if ($?FOOBAR) then
  26.                       set prompt = ''
  27.                       stty -echo
  28.                       echo 'ready'
  29.                    endif
  30.  
  31.             Furthermore, any prompt settings in the .cshrc file should be
  32.             specified before the above if expression.
  33.  
  34.             The operation of pgettextq at execution is as follows: the
  35.             'incat' command is issued to the host.  The host sets up a csh
  36.             with no prompt and no echo and sends back 'ready'.  pGettextq
  37.             responds to the 'ready' signal by sending 'cat <filename>'.  The
  38.             file is cat'ed and printed locally.  Upon completion of the text
  39.             transmission a timer times out, the outcat command is issued to
  40.             the host (restoring echo and prompt) and execution on the ST is
  41.             terminated.
  42.  
  43.        OPTIONS
  44.             % = the text is both printed and displayed
  45.  
  46.             + = the text is displayed only
  47.  
  48.             no % or + = the text is printed only but a 120 character
  49.                 file head is displayed (thus error messages are seen).
  50.  
  51.        NOTES
  52.             To capture text simply redirect output, for example by
  53.  
  54.                   gettext +foo.bar > foo.bar
  55.               
  56.             Execution may be stopped at any time by pressing ^C or Return.
  57.  
  58.  
  59.        Printed 7/4/88                                    Page 1
  60.